//
//  LWSwithCell.m
//  Message
//
//  Created by zhongweiMacPro on 2021/7/18.
//  Copyright © 2021 com.liu.message. All rights reserved.
//

#import "LWSwithCell.h"
#import "CDModelClick.h"
#import "Masonry.h"
#import "UIColor+HEX.h"

@implementation LWSwithCell 

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
//        self.c
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    
        [self setupUI];
        
    }
    
    return self;
}


- (void)setupUI {
 
    self.comImg = [UIImageView new];
    self.comImg.layer.cornerRadius = 6;
    self.comImg.layer.masksToBounds = YES;
    self.comImg.userInteractionEnabled = YES;
    self.comImg.backgroundColor = [UIColor colorWithHexString:@"#696969"];
    [self.contentView addSubview:self.comImg];
    
    [self.comImg mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.offset(6);
        make.bottom.offset(-5);
        make.top.offset(5);
        make.right.offset(-6);
        
    }];
    
    
    self.titleLab = [UILabel new];
    self.titleLab.textColor = [UIColor cyanColor];
    self.titleLab.font = [UIFont boldSystemFontOfSize:14.5];
    
    [self.comImg addSubview:self.titleLab];
    
    [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        
//        make.top.offset(5);
        make.center.offset(0);
        
        
    }];
    
//    self.switchBtn = [UISwitch new];
//    self.switchBtn.tintColor = [UIColor cyanColor];
//    self.switchBtn.onTintColor = [UIColor cyanColor];
//
//    self.switchBtn.transform = CGAffineTransformMakeScale(0.65, 0.65);
//    self.switchBtn.frame = CGRectMake(115, 2, 30, 30);
//    [self.comImg addSubview:self.switchBtn];
//
//    self.successView = [[YYAnimTickView alloc] initWithFrame:CGRectMake(120, 0, 25, 25) backGroundColor:[UIColor clearColor] tickColor:[UIColor clearColor]];

}



@end
